#ifndef __MESSAGE_H__
#define __MESSAGE_H__

struct Message
{
	int what;
	// HANDLE hEvent;
	void (*callback)(void* data);
	void *data;
};
int DispatchMessage(struct Message *msg);
struct Message * CreateMessage(int what, void (*callback)(void* data), void *data);
void ReleaseMessage(struct Message *msg);

#endif // __MESSAGE_H__
